package com.zhoujing.cinema.service;

import com.github.pagehelper.PageInfo;
import com.zhoujing.cinema.entity.*;

import java.util.List;

/**
 * @author ：ywj
 * @date ：Created in 2020/3/17 11:35
 * @description：用户的service
 * @modified By：
 * @version: $
 */
public interface UserService {
    public User findUserByName(String username);
    public void addUser(User user);
    public User findUserById(Integer userId);
    public Boolean verifyUsername(String username);
    public void modifyUserInfo(User user);
    public PageInfo<User> selectAllUser(Integer pageNum, int pageSize);
    public PageInfo<User> searchUser(String username,Integer pageNum, int pageSize);
    public void changeRole(User user);
    public PageInfo<Type> selectAllType(Integer pageNum, int pageSize);
    public void insertType(Type type);
    public void updateType(Type type);
    public PageInfo<Country> selectAllArea(Integer pageNum, int pageSize);
    public void insertArea(Country country);
    public void updateArea(Country country);
    public PageInfo<Year> selectAllYear(Integer pageNum, int pageSize);
    public void insertYear(Year year);
    public void updateYear(Year year);
    public List<Movie> selectAllMovies();
    public PageInfo<Banner> selectAllBanner(Integer pageNum, int pageSize);
    public void addBanner(Banner banner);
    public void updateBanner(Banner banner);
    public void updateBanner1(Banner banner);
    public void changeRole1(Banner banner);
}
